Little problems (i hope you to help me...) - 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: Little problems (i hope you to help me...) (
/showthread.php?tid=625469)
Little problems (i hope you to help me...) -
MarkNelson - 02.01.2017
Hello mates, i have a little problems and maybe a stupid one.
i don't know how to fix them but i never seen those problemes
i hope you to help me, thanks.
Код:
C:\Users\infogenie\Documents\Downloads\Compressed\samp037_svr_R2-1-1_win32_4\filterscripts\fuck.pwn(88) : error 017: undefined symbol "rand"
C:\Users\infogenie\Documents\Downloads\Compressed\samp037_svr_R2-1-1_win32_4\filterscripts\fuck.pwn(89) : error 017: undefined symbol "rand"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Errors.
Код:
public OnPlayerSpawn(playerid)
{
if(STAD[playerid] == 1)
{
SetPlayerInterior(playerid,15);
SetPlayerVirtualWorld(playerid,10);
SetPlayerPos(playerid, STADS[rand][0], STADS[rand][1], STADS[rand][2]);
SetPlayerFacingAngle(playerid, STADS[rand][3]);
GivePlayerWeapon(playerid,27,90000);
GivePlayerWeapon(playerid,34,90000);
return 1;
}
return 1;
}
Re: Little problems (i hope you to help me...) -
Konstantinos - 02.01.2017
How is this possible to never encounter such an error before? It's one of the most common errors given!
pawn Код:
new rand = random(sizeof STADS);
Respuesta: Little problems (i hope you to help me...) -
Parka - 02.01.2017
rand is not define, probably be so
pawn Код:
public OnPlayerSpawn(playerid){
if(STAD[playerid] == 1){
new rand = random(sizeof(STADS));
SetPlayerInterior(playerid,15);
SetPlayerVirtualWorld(playerid,10);
SetPlayerPos(playerid, STADS[rand][0], STADS[rand][1], STADS[rand][2]);
SetPlayerFacingAngle(playerid, STADS[rand][3]);
GivePlayerWeapon(playerid,27,90000);
GivePlayerWeapon(playerid,34,90000);
return 1;
}
return 1;
}
PD: ~Konstantinos
Re: Little problems (i hope you to help me...) -
MarkNelson - 02.01.2017
Oh yea! lol i'm so stupid this time. i forget to add that
thank you very much mate. Here is a Reputation for you. Enjoy mate.
Re: Little problems (i hope you to help me...) -
RyderX - 02.01.2017
EDIT: Late.