Szerző Téma: error 029  (Megtekintve 655 alkalommal)

Nem elérhető Game94

  • 405
    • Profil megtekintése
error 029
« Dátum: 2010. Június 19. - 14:59:08 »
0 Show voters
Nemrég találtam egy jó kis pénz átadó scriptete a neten , gondoltam berakom a modomba . .
De minidig ezeket a hibákat kapom :
 
C:\\Documents and Settings\\Csabi 2\\Asztal\\samp szerver\\gamemodes\\elsomod.pwn(2219) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Csabi 2\\Asztal\\samp szerver\\gamemodes\\elsomod.pwn(2219) : error 029: invalid expression, assumed zero
C:\\Documents and Settings\\Csabi 2\\Asztal\\samp szerver\\gamemodes\\elsomod.pwn(2219) : error 001: expected token: \")\", but found \";\"
C:\\Documents and Settings\\Csabi 2\\Asztal\\samp szerver\\gamemodes\\elsomod.pwn(2219) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
4 Errors.

 
Ezt a sort látja hibásnak :
 
tmp = strtok(cmdtext, idx);

 
Egész script :
 
   if(strcmp(cmdtext, \"/givemoney\", true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
   tmp = strtok(cmdtext, idx);
   if(!strlen(tmp))
   {
      SendClientMessage(playerid, COLOR_GRAD2, \"USAGE: /givemoney [playerid/PartOfName] [money]\");
      return 1;
   }
   new playa;
   new money;
   playa = ReturnUser(tmp);
   tmp = strtok(cmdtext, idx);
   money = strval(tmp);
   if (PlayerInfo[playerid][pAdmin] >= 4)
   {
       if(IsPlayerConnected(playa))
       {
           if(playa != INVALID_PLAYER_ID)
           {
               ConsumingMoney[playa] = 1;
            GivePlayerMoney(playa, money);
         }
      }
   }
   else
   {
      SendClientMessage(playerid, COLOR_GRAD1, \"   you are not authorized to use that command!\");
   }
}
return 1;
}

 
Mi lehet a hiba ?

Nem elérhető Iceaac

  • 2187
    • Profil megtekintése
error 029
« Válasz #1 Dátum: 2010. Június 19. - 15:25:09 »
0 Show voters
Valószínuleg nincs strtok makród.

Nem elérhető Game94

  • 405
    • Profil megtekintése
error 029
« Válasz #2 Dátum: 2010. Június 19. - 15:42:18 »
0 Show voters
És az mit jelent :D ?

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal