C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(91) : error 021: symbol already defined: "strtok"
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(105) : error 047: array sizes do not match, or destination array is too small
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(123) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(133) : warning 217: loose indentation
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(160) : warning 217: loose indentation
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(160) : error 029: invalid expression, assumed zero
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(160) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(160) : error 029: invalid expression, assumed zero
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(160) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
7 Errors.
return result;
new len = strlen(text[pos]);
stock IsNumeric(const string[])
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(105) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(115) : warning 217: loose indentation
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(142) : warning 217: loose indentation
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(142) : error 029: invalid expression, assumed zero
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(142) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(142) : error 029: invalid expression, assumed zero
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(142) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
if(string[i] > '9' || string[i] < '0') return 0;
return 1;
}
pawn Код:
|
pawn Код:
|
pawn Код:
|
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(104) : warning 217: loose indentation
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(104) : error 029: invalid expression, assumed zero
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(104) : error 017: undefined symbol "IsNumeric"
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(104) : error 029: invalid expression, assumed zero
C:\Documents and Settings\FAMILIA_\Desktop\GM Novo\gamemodes\Untitled.pwn(104) : 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.
stock IsNumeric(const string[])
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++)
if(string[i] > '9' || string[i] < '0') return 0;
return 1;
}
new len = strlen(text[pos]);
new count = 0;
new name[MAX_PLAYER_NAME];
for (new i = 0; i <MAX_PLAYERS; i++) {
if (IsPlayerConnected(i)) {
GetPlayerName(i, name, sizeof (name));
if (strcmp(name, text[pos], true, len) == 0) {
if (len == strlen(name)) {
return i;
}
else {
count++;
userid = i;
}
}
}
}
if (count != 1) {
if (playerid != INVALID_PLAYER_ID) {
if (count){SendClientMessage(playerid, VERMELHO, "{FF1493}[ADMIN SYSTEM]{FF0000} Vбrios jogadores encontrados, por favor, procure com mais especificaзгo.");}
else{SendClientMessage(playerid, VERMELHO, "{FF1493}[ADMIN SYSTEM]{FF0000} Nenhum jogador correspondente encontrado.");}
userid = INVALID_PLAYER_ID;
}
return userid;
}
stock IsNumeric(const string[])
{
for (new i = 0, j = strlen(string); i < j; i++){if (string[i] > '9' || string[i] < '0') return 0;}
return 1;
}