Little problems (i hope you to help me...)
#1

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;
}
Reply
#2

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);
Reply
#3

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
Reply
#4

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.
Reply
#5

EDIT: Late.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)