18.07.2015, 12:44
(
Последний раз редактировалось RotAway; 18.07.2015 в 13:21.
)
Код:
if(dialogid == PIZZASTACKMENU) { new float:health; if(response) { if(listitem == 0) { if(GetPlayerCash(playerid) >= 25) return SendClientMessage(playerid, COLOR_WHITE, " You don't have enough money to do this."); { GetPlayerHealth(playerid, health); { if(health <= 80); { SetPlayerHealth(playerid, +20); } else { SetPlayerHealth(playerid, 100); } GivePlayerCash(playerid, -25); ApplyAnimation(playerid, "FOOD", "EAT_Pizza",4.1,0,1,1,0,0); } } if(listitem == 1) { if(GetPlayerCash(playerid) >=35) return SendClientMessage(playerid, COLOR_WHITE, " You don't have enough money to do this."); { GetPlayerHealth(playerid, health); { if(health <= 70); { SetPlayerHealth(playerid, +30); } else { SetPlayerHealth(Playerid, 100); } GivePlayerCash(playerid, -35); ApplyAnimation(playerid, "FOOD", "EAT_Pizza",4.1,0,1,1,0,0); } } if(listitem == 2) { if(GetPlayerCash(playerid) >=35) return SendClientMessage(playerid, COLOR_WHITE, " You don't have enough money to do this."); { GetPlayerHealth(playerid, health); { if(health <=70); { SetPlayerHealth(playerid, +30); } else { SetPlayerHealth(playerid, 100); } GivePlayerCash(playerid, -45); ApplyAnimation(playerid, "FOOD", "EAT_Pizza",4.1,0,1,1,0,0); } } }
Код:
C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53693) : warning 213: tag mismatch C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53695) : warning 213: tag mismatch C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53695) : error 036: empty statement C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53697) : error 029: invalid expression, assumed zero C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53697) : warning 215: expression has no effect C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53697) : error 001: expected token: ";", but found ")" C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53697) : error 029: invalid expression, assumed zero C:\Users\NoConviction\Desktop\FGRP\gamemodes\HRP_9.0.pwn(53697) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
PS: Error lines at the listitem == 0 53697 GetPlayerHealth(playerid, health); 53695 if(health <=80); and 53697 SetPlayerHealth(playerid, +20);