[Ajuda] Compile error
#1

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;
    } 
Reply
#2

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;
    }
Reply
#3

Ty
Reply
#4

comeзa a usar sscanf

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)