Posts: 302
Threads: 72
Joined: Dec 2009
ShowDialog(playerid, 54, DIALOG_STYLE_LIST, "Teams", "Yellow\nGreen\nPurple\nRed\nBlue", "Select", "Cancel");
if(dialogid == 54)
{
if(response)
{
if(listitem == 0)
{
GivePlayerWeapon(playerid, 4, );
SendClientMessage(playerid, , "");
SetPlayerPos(playerid, 734.76, -1294.02, 13.56);
}
if(listitem == 1)
{
GivePlayerWeapon(playerid, 4, );
SendClientMessage(playerid, , "");
SetPlayerPos(playerid, );
}
if(listitem == 2)
{
GivePlayerWeapon(playerid, 4, );
SetPlayerPos(playerid, );
}
if(listitem == 3)
{
GivePlayerWeapon(playerid, 4, );
SetPlayerPos(playerid, );
}
if(listitem == 4)
{
GivePlayerWeapon(playerid, 4, );
SetPlayerPos(playerid, );
}
}
}
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
What is wrong with this ? What's the problem.. ?
Posts: 302
Threads: 72
Joined: Dec 2009
Quote:
Originally Posted by xVIP3Rx
What is wrong with this ? What's the problem.. ?
|
When i put it in my Gm i get errors
[5:01:05 PM] eblood 1: C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14106) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14107) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14109) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14111) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14117) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14123) : error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(1412
: error 010: invalid function or declaration
C:\Users\Administrator\Desktop\Extreme Stunting\gamemodes\StuntGM_XS.pwn(14133) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (coffee) 1997-2006, ITB CompuPhase
8 Errors.
Posts: 1,098
Threads: 14
Joined: Feb 2013
Reputation:
0
Can you tell which lines have errors ? on the script..
Posts: 302
Threads: 72
Joined: Dec 2009
Quote:
Originally Posted by xVIP3Rx
Can you tell which lines have errors ? on the script..
|
This
showDialog(playerid, 54, DIALOG_STYLE_LIST, "Teams", "Yellow\nGreen\nPurple\nRed\nBlue", "Select", "Cancel");
Posts: 302
Threads: 72
Joined: Dec 2009
still get errors , maybe im putting stuff wrong :/
Posts: 302
Threads: 72
Joined: Dec 2009
Now it works but when i click on yellow it takes me to the place but the dialog wont come off