SA-MP Forums Archive
Loads of errors - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Loads of errors (/showthread.php?tid=498184)



Loads of errors - Vasu99 - 02.03.2014

Hi,

Thanks for reading this topic. I'm getting 26 errors as I compile due to the following script.

pawn Код:
public OnPlayerConnect(playerid)
{
    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);//Thats Hard To Explain, Just To Load The Data
    if(PlayerInfo[playerid][Banned]==1)
    {
    SendClientMessage(playerid, 0xFF1493FF, "You Are Banned From The Server, Kicked!!!.");
    Kick(playerid);
    new name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
It's not the entire part above that's the problem, but just this part.

pawn Код:
if(PlayerInfo[playerid][Banned]==1)
    {
    SendClientMessage(playerid, 0xFF1493FF, "You Are Banned From The Server, Kicked!!!.");
    Kick(playerid);
I will post the warnings below but they say that the problems are on other lines, which they aren't due to the fact that all of the warnings go away as soon as I remove that part that I posted above.

pawn Код:
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(916) : warning 217: loose indentation
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(916) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(916) : error 004: function "Itter_OnPlayerDisconnect" is not implemented
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(926) : error 017: undefined symbol "reason"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(952) : warning 225: unreachable code
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(952) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(952) : error 004: function "OnPlayerSpawn" is not implemented
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(959) : warning 225: unreachable code
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(959) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(959) : error 004: function "OnPlayerDeath" is not implemented
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(964) : warning 225: unreachable code
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(964) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(964) : error 004: function "OnVehicleSpawn" is not implemented
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(969) : warning 225: unreachable code
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(969) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(969) : error 004: function "OnVehicleDeath" is not implemented
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(974) : warning 225: unreachable code
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(974) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(974) : error 004: function "OnPlayerText" is not implemented
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(978) : error 017: undefined symbol "text"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(985) : warning 225: unreachable code
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(985) : error 029: invalid expression, assumed zero
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(985) : error 017: undefined symbol "SendNearbyMessage"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(999) : error 017: undefined symbol "radius"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1001) : error 017: undefined symbol "col1"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1003) : error 017: undefined symbol "radius"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1005) : error 017: undefined symbol "col2"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1007) : error 017: undefined symbol "radius"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1009) : error 017: undefined symbol "col3"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1011) : error 017: undefined symbol "radius"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1013) : error 017: undefined symbol "col4"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1015) : error 017: undefined symbol "radius"
C:\Users\vasu\Desktop\Sa-Mp Roleplay Serv\gamemodes\Roleplay.pwn(1017) : error 017: undefined symbol "col5"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.



Re: Loads of errors - amirab - 02.03.2014

You missed one
PHP код:
     



Re: Loads of errors - ConnorHunter - 02.03.2014

pawn Код:
public OnPlayerConnect(playerid)
{
    INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
    if(PlayerInfo[playerid][Banned]==1)
    {
         SendClientMessage(playerid, 0xFF1493FF, "You Are Banned From The Server, Kicked!!!.");
         Kick(playerid);
    }
    new name[MAX_PLAYER_NAME+1];
    GetPlayerName(playerid, name, sizeof(name));
    return 1;
}