Help problem - 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 problem (
/showthread.php?tid=508952)
Help problem -
gekas - 24.04.2014
pawn Code:
if (PlayDM[playerid] == 1)
{
SetPlayerInterior(playerid, 0);//This will set player interior to 0
SetPlayerVirtualWorld(playerid, 10);//This will set player virtual world to 10
new ran = random(sizeof(DMSpawns));
SetPlayerPos(playerid, DMSpawns[ran][0], DMSpawns[ran][1], DMSpawns[ran][2]); //Set Player random pos X Y
SetPlayerFacingAngle(playerid, DMSpawns[ran][3]);//Set Player random fancing angle
GivePlayerWeapon(playerid, 4, 1500); //Give Player Rocket Launcher
}
pawn Code:
if(PlayDM(playerid) = 1)
pawn Code:
C:\Users\Arlind\Desktop\fsdf\gamemodes\1v1.pwn(100
: error 012: invalid function call, not a valid address
C:\Users\Arlind\Desktop\fsdf\gamemodes\1v1.pwn(100
: warning 215: expression has no effect
C:\Users\Arlind\Desktop\fsdf\gamemodes\1v1.pwn(100
: error 001: expected token: ";", but found ")"
C:\Users\Arlind\Desktop\fsdf\gamemodes\1v1.pwn(100
: error 029: invalid expression, assumed zero
C:\Users\Arlind\Desktop\fsdf\gamemodes\1v1.pwn(100
: fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: Help problem -
KillerStrike23 - 24.04.2014
new ran;
ran = random(sizeof(DMSpawns));