zombies dm - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: zombies dm (
/showthread.php?tid=254233)
zombies dm -
misho1 - 09.05.2011
hi i was search to any zombie dm and i didn't find any thing and i created 1 by self when i put it in my gm i got 4 errors
pawn Код:
if(!strcmp(cmdtext, "/zdm", true))
{
ShowPlayerDialog(playerid,7777, DIALOG_STYLE_LIST, "Zombies War", "Zombie \nFBI, "Select", "Cancel");
}
return 1;
pawn Код:
if(dialogid == 7777);
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED, "Eat The Human BRAAIN!!");
SetPlayerSkin(playerid, 162);
SetPlayerPos(playerid,-1792.4313,811.4731,342.1284,359.3210);
GivePlayerWeapon(playerid, 6,);
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_RED, "Kill The Zombies");
SetPlayerSkin(playerid, 286);
SetPlayerPos(playerid,-1762.6693,880.4736,342.1284,152.5424);
GivePlayerWeapon(playerid, 24,);
GivePlayerWeapon(playerid, 30,);
}
return 1;
}
Код:
F:\FreeRoam World\gamemodes\Freeroam1.pwn(6788) : error 001: expected token: "-string end-", but found "-identifier-"
F:\FreeRoam World\gamemodes\Freeroam1.pwn(6788) : error 017: undefined symbol "Select"
F:\FreeRoam World\gamemodes\Freeroam1.pwn(6788) : error 001: expected token: ";", but found "-identifier-"
F:\FreeRoam World\gamemodes\Freeroam1.pwn(6788) : 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: zombies dm -
Fj0rtizFredde - 09.05.2011
Here you go.
pawn Код:
if(dialogid == 7777)
{
if(listitem == 0)
{
SendClientMessage(playerid, COLOR_RED, "Eat The Human BRAAIN!!");
SetPlayerSkin(playerid, 162);
SetPlayerPos(playerid,-1792.4313,811.4731,342.1284); //You got one coord more then you needed here (I removed it for you)
GivePlayerWeapon(playerid, 24,100); //You for got to put the ammo value here
GivePlayerWeapon(playerid, 30, 100); //Same here
}
if(listitem == 1)
{
SendClientMessage(playerid, COLOR_RED, "Kill The Zombies");
SetPlayerSkin(playerid, 286);
SetPlayerPos(playerid,-1762.6693,880.4736,342.1284); //You got one coord more then you needed here (I removed it for you)
GivePlayerWeapon(playerid, 24,100); //You for got to put the ammo value here
GivePlayerWeapon(playerid, 30, 100); //Same here
}
return 1;
}
Re: zombies dm -
misho1 - 09.05.2011
i have the same 4 errors
Re: zombies dm -
Fj0rtizFredde - 09.05.2011
You forgot a " at the end on your text
pawn Код:
ShowPlayerDialog(playerid,7777, DIALOG_STYLE_LIST, "Zombies War", "Zombie \nFBI", "Select", "Cancel");
Re: zombies dm -
misho1 - 09.05.2011
thnx it work
i will release this map soon
Re: zombies dm -
Laronic - 09.05.2011
pawn Код:
ShowPlayerDialog(playerid,7777, DIALOG_STYLE_LIST, "Zombies War", "Zombie \nFBI", "Select", "Cancel");
EDIT: Too Late ^
Re: zombies dm -
misho1 - 09.05.2011
cyper ghost it work