Invalid function call, not a valid address
#1

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)));
Reply
#2

You have an extra closing bracket, remove it..
pawn Код:
format(string, 200, "%s has joined the server.", PlayerInfo(playerid));
Reply
#3

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.
Reply
#4

Код:
format(string, sizeof(string), "%s has joined the server.", PlayerInfo(playerid));
Reply
#5

Still the Same Problem...
Reply
#6

Show your "new string" and PlayerInfo(playerid) also the "public ..." where you place that line.
Reply
#7

Show me all what you have under OnPlayerConnect
Reply
#8

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);
	}
Reply
#9

please help...
Reply
#10

show ur playerinfo function
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)