14.03.2015, 21:00
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : error 001: expected token: ",", but found "-string-"
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : warning 215: expression has no effect
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : warning 215: expression has no effect
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : error 001: expected token: ";", but found ")"
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : error 029: invalid expression, assumed zero
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : fatal error 107: too many error messages on one line
Okay well, I narrowed it down to 4 errors, but, now here's the code.
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName "_", true) == -1)
{
SendClientMessage(playerid, 0xFF0000AA, "This is a Roleplay Server, Please get a name in the correct format: Firstname_Lastname. (Ex. Dre_Valencia)" );
Kick(playerid);
}
return 1;
}
That's line 24806-24816
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : warning 215: expression has no effect
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : warning 215: expression has no effect
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : error 001: expected token: ";", but found ")"
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : error 029: invalid expression, assumed zero
C:\Users\Nicholas\Desktop\AG-RP\gamemodes\AGRP.pwn(24810) : fatal error 107: too many error messages on one line
Okay well, I narrowed it down to 4 errors, but, now here's the code.
public OnPlayerConnect(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
if(strfind(pName "_", true) == -1)
{
SendClientMessage(playerid, 0xFF0000AA, "This is a Roleplay Server, Please get a name in the correct format: Firstname_Lastname. (Ex. Dre_Valencia)" );
Kick(playerid);
}
return 1;
}
That's line 24806-24816