SA-MP Forums Archive
[Ajuda] Compile error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Compile error (/showthread.php?tid=511211)



Compile error - DaYviSoN - 04.05.2014

Error:

PHP код:
C:\Users\Bruno\Desktop\CoD-Rivals\CoD-Rivals\gamemodes\CoD-R.pwn(166) : error 017undefined symbol "idx"
Pawn compiler 3.2.3664              Copyright (c1997-2006ITB CompuPhase
1 Error

Line of error:

PHP код:
//============================================================================//
//====================================Comandos================================//
//============================================================================//
//==================================Comandos para Admins======================//
public OnPlayerCommandText(playerid,cmdtext[])
    {
    if(!
IsPlayerAdmin(playerid)) return 0;
    if(
strcmp(cmdtext"/respawn_veh",true) == 0) {
    new 
tmp[256];
    
tmp strtok(cmdtext,idx);                       @@@@@@@ Line 166@@@@@@@@@@@@
    
SetVehicleToRespawn(strval(tmp));
    return 
1;
    } 



Re: Compile error - lKoDlFuLLaNNo - 04.05.2014

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



Re: Compile error - DaYviSoN - 04.05.2014

Ty


Re: Compile error - PT - 04.05.2014

comeзa a usar sscanf

ve ai o porque: https://sampforum.blast.hk/showthread.php?tid=493276


Re: Compile error - DaYviSoN - 04.05.2014

Ha yah.... Pois ja estou a usar sscanf