14.07.2015, 22:56
Here's the code
Errors
The first error line
Second error
PHP код:
stock GetPlayerID(Name[])
{
new pName[24];
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerName(i, pName, sizeof(pName));
if(strcmp(Name, pName, true)==0)
{
return i;
}
}
return 1;
}
PHP код:
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(527) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Users\zero\Downloads\samp037_svr_R1_win32 (1)aa\gamemodes\FAKE.pwn(533) : error 035: argument type mismatch (argument 1)
PHP код:
stock GetPlayerID(Name[])
PHP код:
if(strcmp(Name, pName, true)==0)