PDA

View Full Version : [HELP] using streamer


DaRkAnGeL[NBK]
07/10/2011, 10:51 PM
hey i was trying to add a check point for a minigame

CreateDynamicCP(343.2269,159.9849,1025.7891,10,wor ldid = 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 (c) 1997-2006, ITB CompuPhase


4 Errors.
please help thanks :D

Backwardsman97
07/10/2011, 10:57 PM
Show some more around that line. Have you defined worldid, interiorid, and playerid?

DaRkAnGeL[NBK]
07/10/2011, 11:02 PM
oh no how to do that just #define worldid
#define interiorid
#define playerid
??

Tigerkiller
07/10/2011, 11:21 PM
CreateDynamicCP(343.2269,159.9849,1025.7891,10,1,1 , playerid,100.0);

DaRkAnGeL[NBK]
07/10/2011, 11:27 PM
perfect thanks :D

DaRkAnGeL[NBK]
07/10/2011, 11:36 PM
um how would i allow a team to capture that check point ? im using it for a minigame so this is what i have:

public OnPlayerEnterCheckpoint(playerid)
{
SetTimer("Countdown",7000,0);
GameTextForPlayer(playerid,"~g~Capturing CP Please Wait....", 7000, 1);
return 1;
}

then
public Countdown()
{
new playerid;
GameTextForAll("Army Have Won",1000,4);
GameTextForAll("Starting Next Round",1000,4);
ForceClassSelection(playerid);
}

but how to add new rounds?