I need help with my script. Please respond quickly. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: I need help with my script. Please respond quickly. (
/showthread.php?tid=271189)
I need help with my script. Please respond quickly. -
Mrki_Drakula - 23.07.2011
Hello Community,
I need help with my script....
Compile Results:
Код:
C:\Users\Crysis\Desktop\Udri Ga Kolega\gamemodes\UGKRolePlay.pwn(4049) : error 017: undefined symbol "SetPVarInt"
C:\Users\Crysis\Desktop\Udri Ga Kolega\gamemodes\UGKRolePlay.pwn(4481) : error 017: undefined symbol "SetPVarInt"
C:\Users\Crysis\Desktop\Udri Ga Kolega\gamemodes\UGKRolePlay.pwn(4523) : error 017: undefined symbol "GetPVarInt"
C:\Users\Crysis\Desktop\Udri Ga Kolega\gamemodes\UGKRolePlay.pwn(4526) : error 017: undefined symbol "SetPVarInt"
C:\Users\Crysis\Desktop\Udri Ga Kolega\gamemodes\UGKRolePlay.pwn(49263) : warning 219: local variable "sati" shadows a variable at a preceding level
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Код:
4046. GetPlayerName(playerid, name, sizeof(name));
4047. PlayerInfo[playerid][pLocal] = 255;
4048. GetPlayerPos(playerid, px, py, pz);
4049. SetPVarInt(playerid, "Krepalo [cenzura]", 1);
4050. if(gPlayerUsingLoopingAnim[playerid] == 1)
4051. {
4052. gPlayerUsingLoopingAnim[playerid] = 0;
Код:
4480. AntiDeAMX();
4481. SetPVarInt(playerid, "Krepalo [cenzura]", 1);
4482. if(MedicBill[playerid] == 1 && PlayerInfo[playerid][pJailed] == 0 && PlayerPaintballing[playerid] == 0)
Код:
4522. }
4523. if(GetPVarInt(playerid, "Krepalo [cenzura]") == 1)
4524. {
4525. SetPlayerPos(playerid, 1178.8889,-1323.5004,14.1423);
4526. SetPVarInt(playerid, "Krepalo [cenzura]", 0);
4527. }
Код:
49261. public VremeTimer(playerid)
49262. {
49263. new string[128],godina,mjesec,dan,sati,minute,sekunde;
49264. getdate(godina, mjesec, dan), gettime(sati, minute, sekunde);
49265. format(string, sizeof string, "%d/%s%d/%s%d", dan, ((mjesec < 10) ? ("0") : ("")), mjesec, (godina < 10) ? ("0") : (""), godina);
49266. TextDrawSetString(Datum, string);
49267. format(string, sizeof string, "%s%d:%s%d:%s%d", (sati < 10) ? ("0") : (""), sati, (minute < 10) ? ("0") : (""), minute, (sekunde < 10) ? ("0") : (""), sekunde);
49268. TextDrawSetString(Vreme, string);
49269. }
Thank you.
AW: I need help with my script. Please respond quickly. -
samtey - 23.07.2011
I think u have to define ur symbols... try it like "new ..." or #define ...
Re: I need help with my script. Please respond quickly. -
Mrki_Drakula - 23.07.2011
Idk..i will try. Anyway thank you
Re: I need help with my script. Please respond quickly. -
MoroDan - 23.07.2011
Hmm, I see you don't have your Server updated to
0.3c R2.
Re: I need help with my script. Please respond quickly. -
Mrki_Drakula - 23.07.2011
Let me check.
[EDIT]
IT WORKS!
Thank you MoroDan!