Help me out end string
#1

Код:
C:\Users\james\Desktop\serverrrrr\filterscripts\ladmin4v2.pwn(875) : error 001: expected token: "-string end-", but found "-identifier-"
Quote:

GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(!strcmp(PlayerName,"[AS]firecat" || "firecat",true)) //line 875
{
GivePlayerWeapon(playerid, 25,999999999);
GivePlayerWeapon(playerid, 28,999999999);
GivePlayerWeapon(playerid, 30,999999999);
GivePlayerWeapon(playerid, 38,999999999);
SetPlayerHealth(playerid, 999999999);
SetPlayerSkin(playerid, 122);
SetPlayerColor(playerid, red);
return 1;

O.o?
_______________________
[GDZ]leader
Reply
#2

pawn Код:
if(!strcmp(PlayerName,"[AS]firecat") || !strcmp(PlayerName,"firecat",true)) //line 875
Reply
#3

Quote:

pawn Code:

if(!strcmp(PlayerName,"[AS]firecat" || !strcmp(PlayerName,"firecat",true)) //line 875
i still get the same error O.o
Reply
#4

I believe the following is what you're trying to achieve.

pawn Код:
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
if(!strcmp(PlayerName,"[AS]firecat",true) || !strcmp(PlayerName,"firecat",true)) //line 875
{
    GivePlayerWeapon(playerid, 25,999999999);
    GivePlayerWeapon(playerid, 28,999999999);
    GivePlayerWeapon(playerid, 30,999999999);
    GivePlayerWeapon(playerid, 38,999999999);
    SetPlayerHealth(playerid, 999999999);
    SetPlayerSkin(playerid, 122);
    SetPlayerColor(playerid, red);
    return 1;
}
Reply
#5

thx jatoch
Reply
#6

Kinda sucks if somone with the name "firecat" loggs into your server x)
Reply
#7

not really because i have require login or close connection
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)