SA-MP Forums Archive
[HELP] using streamer - 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] using streamer (/showthread.php?tid=288499)



[HELP] using streamer - DaRkAnGeL[NBK] - 07.10.2011

hey i was trying to add a check point for a minigame

pawn Код:
CreateDynamicCP(343.2269,159.9849,1025.7891,10,worldid = 1,interiorid = 1, playerid,Float:distance = 100.0);
Код:
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\filterscripts\army.pwn(28) : error 017: undefined symbol "worldid"
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\filterscripts\army.pwn(28) : warning 215: expression has no effect
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\filterscripts\army.pwn(28) : error 017: undefined symbol "interiorid"
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\filterscripts\army.pwn(28) : warning 215: expression has no effect
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\filterscripts\army.pwn(28) : error 017: undefined symbol "playerid"
C:\Users\Unlimited DMers\Desktop\Fas FreeRoam\filterscripts\army.pwn(28) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
please help thanks


Re: [HELP] using streamer - Backwardsman97 - 07.10.2011

Show some more around that line. Have you defined worldid, interiorid, and playerid?


Re: [HELP] using streamer - DaRkAnGeL[NBK] - 07.10.2011

oh no how to do that just
Код:
#define worldid
#define interiorid
#define playerid
??


AW: [HELP] using streamer - Tigerkiller - 07.10.2011

pawn Код:
CreateDynamicCP(343.2269,159.9849,1025.7891,10,1,1, playerid,100.0);



Re: [HELP] using streamer - DaRkAnGeL[NBK] - 07.10.2011

perfect thanks


Re: [HELP] using streamer - DaRkAnGeL[NBK] - 07.10.2011

um how would i allow a team to capture that check point ? im using it for a minigame so this is what i have:

pawn Код:
public OnPlayerEnterCheckpoint(playerid)
{
    SetTimer("Countdown",7000,0);
    GameTextForPlayer(playerid,"~g~Capturing CP Please Wait....", 7000, 1);
    return 1;
}
then
pawn Код:
public Countdown()
{
    new playerid;
    GameTextForAll("Army Have Won",1000,4);
    GameTextForAll("Starting Next Round",1000,4);
    ForceClassSelection(playerid);
}
but how to add new rounds?