AdminScript/Stats
#5

Quote:
Originally Posted by vassilis
Посмотреть сообщение
On top of script:
pawn Код:
new spawndialog;
Problem with
pawn Код:
new sapwndialog;
is that the error "warning 203: symbol is never used: "spawndialog"

on Player Spawn:
pawn Код:
OnPlayerSpawn(playerid) {
ShowPlayerDialog(playerid, "Weapon Shop", "Weap1\nWeap2\n etc...", "Ok", "Cancel");
return 1;
}
the problem with on Player Spawn:
pawn Код:
OnPlayerSpawn(playerid) {
ShowPlayerDialog(playerid, "Weapon Shop", "Weap1\nWeap2\n etc...", "Ok", "Cancel");
return 1;
}
is that the error "warning 203: symbol is never used: "OnPlayerSpawn"

now to complete it do that:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if (dialogid == spawndialog) {
if(response)
{
switch(listitem) {
case 0 : //Weapon 1
{
GivePlayerWeapon(playerid, weaponid);
SendClientMessage(playerid, COLOR_HERE, "You just bought Weapon1!");
}
case 1: //weapon 2
{
GivePlayerWeapon(playerid, weaponid);
SenClientMessage(playerid, COLOR_HERE, "You Just bought Weapon2!");
case 2: //weapon 3
{
etc
}
Errors

: error 017: undefined symbol "spawndialog"
error 017: undefined symbol "weaponid"
error 017: undefined symbol "COLOR_HERE"
error 017: undefined symbol "weaponid"
error 017: undefined symbol "SenClientMessage"
error 014: invalid statement; not in switch
warning 215: expression has no effect
error 001: expected token: ";", but found ":"
error 029: invalid expression, assumed zero
fatal error 107: too many error messages on one line
Reply


Messages In This Thread
AdminScript/Stats - by Champ - 02.11.2011, 12:55
Re: AdminScript/Stats - by Kingunit - 02.11.2011, 13:04
Re: AdminScript/Stats - by Champ - 02.11.2011, 15:31
Re: AdminScript/Stats - by vassilis - 02.11.2011, 16:47
Re: AdminScript/Stats - by Champ - 02.11.2011, 16:59
Re: AdminScript/Stats - by vassilis - 02.11.2011, 17:02
Re: AdminScript/Stats - by Champ - 02.11.2011, 17:23
Re: AdminScript/Stats - by vassilis - 02.11.2011, 17:26
Re: AdminScript/Stats - by Zonoya - 02.11.2011, 19:55
Re: AdminScript/Stats - by vassilis - 02.11.2011, 19:58

Forum Jump:


Users browsing this thread: 1 Guest(s)