Jump to content
  • 0

pomoc HELP Eror


mEy

Dotaz

Ahoj zkouším Qwerovo CP ale když dám F5 tak se mi objeví tenhle ERRor

 

 

C:\Documents and Settings\Matýsek\Plocha\CP.pwn(17) : error 017: undefined symbol "CreateCheckpointColor"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

 

 

 

Pwn

 

 

 

#include 

#pragma tabsize 0

#define DCMD(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return


forward OnPlayerEnterColoredCP(playerid,cpid);

new mycp;



public OnGameModeInit(){
mycp = CreateCheckpointColor(0,0,0,0xFF0000FF); // Vytvoríme farebný CP na súradniciach 0,0,0 s farbou modrou (AARRGGBB)
return true;
}

public OnPlayerEnterColoredCP(playerid,cpid){
if(cpid == mycp){
SendClientMessage(playerid,-1,"Dostal si minigun ako odmenu !");
GivePlayerWeapon(playerid,38,9999);
return true;
}
return true;
}

Link to comment
Share on other sites

1 odpověd na tuto otázku

Recommended Posts

  • 0

pridej tam

stock CreateCheckpointColor(Float:x,Float:y,Float:z,color){ // POZOR ! Dávajte formát: AARRGGBB ! a nie RRGGBBAA (AA = aplha - transparentnosť)
//Čiže červená je 0xFFFF0000 a NIE 0xFF0000FF  TOTO NIE !!
CPcount++;
if(CPcount >= MAX_CP) return print("Bol prekroceny pocet farebnych checkpointov");
if(CPcount == 0){
SetTimer("ColoredCP",300,true);
}

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...