C:\Documents and Settings\Administraator\Desktop\San Andreas Multiplayer server\gamemodes\*******.pwn(18841) : warning 202: number of arguments does not match definition C:\Documents and Settings\Administraator\Desktop\San Andreas Multiplayer server\gamemodes\*******.pwn(18841) : warning 202: number of arguments does not match definition
GetPlayerName(giveplayerid, pName, sizeof(pName));
if(giveplayerid != INVALID_PLAYER_ID) { new pName[MAX_PLAYER_NAME]; GetPlayerName(giveplayerid, pName, sizeof(pName)); SendClientMessage(playerid, COLOR_GRAD1, "=== ADMINCHECK - PlayerID: %d / Player: %s ===", giveplayerid, pName); ShowStats(playerid,giveplayerid); }
if(IsPlayerConnected(giveplayerid)) { if(giveplayerid != INVALID_PLAYER_ID) { new pName[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(giveplayerid, pName, sizeof(pName)); format(string, 256, "=== ADMINCHECK - PlayerID: %d / Player: %s ===", giveplayerid, pName); SendClientMessage(playerid, COLOR_RED, string); ShowStats(playerid,giveplayerid); } }
C:\Documents and Settings\Administraator\Desktop\San Andreas Multiplayer server\gamemodes\******.pwn(18840) : warning 219: local variable "string" shadows a variable at a preceding level
new string[256];
/call 911 Hello! Close topic, thanks. /hangup |
if(IsPlayerConnected(giveplayerid))
{
if(giveplayerid != INVALID_PLAYER_ID)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(giveplayerid, pName, sizeof(pName));
format(string, 256, "=== ADMINCHECK - PlayerID: %d / Player: %s ===", giveplayerid, pName);
SendClientMessage(playerid, COLOR_RED, string);
ShowStats(playerid,giveplayerid);
}
}