Compile error
#1

I got some errors can you help me pls

PHP код:
C:\Users\Bruno\Desktop\CoD-Rivals\CoD-Rivals\gamemodes\CoD-R.pwn(150) : error 017undefined symbol "cmd"
C:\Users\Bruno\Desktop\CoD-Rivals\CoD-Rivals\gamemodes\CoD-R.pwn(152) : error 017undefined symbol "strtok"
C:\Users\Bruno\Desktop\CoD-Rivals\CoD-Rivals\gamemodes\CoD-R.pwn(152) : error 033: array must be indexed (variable "tmp")
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
3 Errors

PHP код:
//============================================================================//
//====================================CMDS======================================//
//============================================================================//
public OnPlayerCommandText(playerid,cmdtext[])
{
    if(!
IsPlayerAdmin(playerid)) return 0;
    if(
strcmp(cmd"/respawn_veh",true) == 0) {
    new 
tmp[256];
    
tmp strtok(cmdtext,idx);
    
SetVehicleToRespawn(strval(tmp));
    return 
1;

Reply


Messages In This Thread
Compile error - by DaYviSoN - 30.04.2014, 18:44
Re: Compile error - by DaYviSoN - 30.04.2014, 22:20
Re: Compile error - by DerickClark - 30.04.2014, 22:23
Re: Compile error - by DaYviSoN - 30.04.2014, 22:35
Re: Compile error - by Dignity - 30.04.2014, 22:39
Re: Compile error - by DaYviSoN - 30.04.2014, 22:41
Re: Compile error - by Dignity - 30.04.2014, 22:51

Forum Jump:


Users browsing this thread: 1 Guest(s)