SA-MP Forums Archive
Help me to fix it ? - 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: Help me to fix it ? (/showthread.php?tid=586627)



Help me to fix it ? - Toxik - 23.08.2015

pawn Код:
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(100) : warning 219: local variable "Name" shadows a variable at a preceding level
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(101) : error 017: undefined symbol "playerid"
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(101) : warning 215: expression has no effect
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(101) : error 020: invalid symbol name ""
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(101) : warning 215: expression has no effect
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(101) : error 001: expected token: ";", but found ")"
C:\Users\CraTzy\Desktop\DayZ\filterscripts\House.pwn(101) : fatal error 107: too many error messages on one line

Lines
pawn Код:
new Name[32];
GetPlayerName(playerid, Name, sizeof(Name);
if(strfind(Name, "[GC]CraTzy", true))
   CreateEnter("{FFFFFF}[ {00FF00}[GC]CraTzy{FFFFFF}]\n {FF0000}Do Not {00FF00} Disturb", -2124.2676,2673.2573,158.5540, -2109.9573,2701.8477,148.9961,0); //GC hub
    }
[/PAWN]


Re: Help me to fix it ? - Logofero - 23.08.2015

Quote:
Originally Posted by Toxik
Посмотреть сообщение
CreateEnter("{FFFFFF}[ {00FF00}[GC]CraTzy{FFFFFF}]\n {FF0000}Do Not {00FF00} Disturb", -2124.2676,2673.2573,158.5540, -2109.9573,2701.8477,148.9961,0); //GC hub
}
That function? Describe its arguments
It missed them!


Re: Help me to fix it ? - DarkLored - 23.08.2015

pawn Код:
new pName[32];
GetPlayerName(playerid, pName, sizeof(pName);
if(strfind(pName, "[GC]CraTzy", true)){
   CreateEnter("{FFFFFF}[ {00FF00}[GC]CraTzy{FFFFFF}]\n {FF0000}Do Not {00FF00} Disturb", -2124.2676,2673.2573,158.5540, -2109.9573,2701.8477,148.9961,0); //GC hub
    }



Re: Help me to fix it ? - Logofero - 23.08.2015

Quote:
Originally Posted by DarkLored
Посмотреть сообщение
pawn Код:
new pName[32];
GetPlayerName(playerid, pName, sizeof(pName);
if(strfind(pName, "[GC]CraTzy", true)){
   CreateEnter("{FFFFFF}[ {00FF00}[GC]CraTzy{FFFFFF}]\n {FF0000}Do Not {00FF00} Disturb", -2124.2676,2673.2573,158.5540, -2109.9573,2701.8477,148.9961,0); //GC hub
    }
They lack not only the brackets