Invalid function call, not a valid address -
spykidz01 - 26.04.2014
i got this problem, someone please help
Код:
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : error 012: invalid function call, not a valid address
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : warning 215: expression has no effect
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : error 001: expected token: ";", but found ")"
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : error 029: invalid expression, assumed zero
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
line 1427
Код:
format(string, 200, "%s has joined the server.", PlayerInfo(playerid)));
Re: Invalid function call, not a valid address -
RoboN1X - 26.04.2014
You have an extra closing bracket, remove it..
pawn Код:
format(string, 200, "%s has joined the server.", PlayerInfo(playerid));
Re: Invalid function call, not a valid address -
spykidz01 - 26.04.2014
Removed. But i still have the same problem
Код:
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : error 012: invalid function call, not a valid address
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : warning 215: expression has no effect
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : error 001: expected token: ";", but found ")"
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : error 029: invalid expression, assumed zero
C:\Users\Louis Alcosaba\Desktop\KARAGON SAMP\gamemodes\1.2.pwn(1427) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Invalid function call, not a valid address -
Sojo12 - 26.04.2014
Код:
format(string, sizeof(string), "%s has joined the server.", PlayerInfo(playerid));
Re: Invalid function call, not a valid address -
spykidz01 - 26.04.2014
Still the Same Problem...
Re: Invalid function call, not a valid address -
RoboN1X - 26.04.2014
Show your "new string" and PlayerInfo(playerid) also the "public ..." where you place that line.
Re: Invalid function call, not a valid address -
Sojo12 - 26.04.2014
Show me all what you have under OnPlayerConnect
Re: Invalid function call, not a valid address -
spykidz01 - 26.04.2014
Is this is?
Код:
public OnPlayerConnect(playerid)
{
//xObjects
for(new i = 0; i < sizeof(Objects); i++) Player[playerid][view][i] = false; /////////xobj
zoneupdates[playerid] =1;
SendClientMessage(playerid, COLOR_BLUE, "Welcome to Los Santos Cops And Robbers! "VERSION"");
SendClientMessage(playerid, COLOR_RED, "Be Sure To Register Before Spawning (/register)");
SendClientMessage(playerid, COLOR_ORANGE, "Login Is Required To Play On This Server.");
new string[200], pIP[16];
GetPlayerIp(playerid, pIP, 16);
SetPVarInt(playerid, "Spawned", 0);
SetPlayerColor(playerid, COLOR_DEADCONNECT);
format(string, sizeof(string), "%s has joined the server.", PlayerInfo(playerid));
SendClientMessageToAll(COLOR_GREEN, string);
if(udb_Exists(PlayerName(playerid)))
{
SendClientMessage(playerid, COLOR_ERROR, "Welcome Back %s! Please Login.");
LogPlayer(playerid);
}
else if (!udb_Exists(PlayerName(playerid)))
{
SendClientMessage(playerid, COLOR_ERROR, "This Player Name Is Not Registered. Please Type /register Before You Spawn.");
RegisterPlayer(playerid);
}
Re: Invalid function call, not a valid address -
spykidz01 - 26.04.2014
please help...
Re: Invalid function call, not a valid address -
PrinceKumar - 26.04.2014
show ur playerinfo function