05.12.2013, 21:14
Having problems with some warnings and I cant seem to see any problems with it... If you look below the warnings and the line which it points to is there.
Up there are the warnings now here are the " Tag Mismatch " warning lines.
MISMATCH 1: LINE 1159
MISMATCH 2: LINE 3248
MISMATCH 3: LINE 3265
Now we're onto the Possibly unintended assignment
Assignment Warning 1: LINE 3282
Assignment Warning 2: LINE 3305
If you cannot see the problem and wish to help me further PM me and add me on skype please.
Код:
C:\Users\Nathan Cooper\Desktop\new\los scriptos\script.pwn(1159) : warning 213: tag mismatch C:\Users\Nathan Cooper\Desktop\new\los scriptos\script.pwn(3248) : warning 213: tag mismatch C:\Users\Nathan Cooper\Desktop\new\los scriptos\script.pwn(3265) : warning 213: tag mismatch C:\Users\Nathan Cooper\Desktop\new\los scriptos\script.pwn(3282) : warning 211: possibly unintended assignment C:\Users\Nathan Cooper\Desktop\new\los scriptos\script.pwn(3305) : warning 211: possibly unintended assignment Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
MISMATCH 1: LINE 1159
Код:
ATMInfo[idx][tmModel] = CreateDynamicObject(2942,ATMInfo[idx][tmX],ATMInfo[idx][tmY],ATMInfo[idx][tmZ],0,0,ATMInfo[idx][tmA],0); format(label,sizeof(label),"ATM Storage $%d\nID:%d",ATMInfo[idx][tmBalance], idx); ATMInfo[idx][tmText] = CreateDynamic3DTextLabel(label,COLOR_GREEN,ATMInfo[idx][tmX],ATMInfo[idx][tmY],ATMInfo[idx][tmZ], 15);
Код:
format(string,sizeof(string),"Total ATM Balance $%d\nID:%d",ATMInfo[idx][tmBalance], idx); ATMInfo[idx][tmText] = CreateDynamic3DTextLabel(string,COLOR_GREEN,ATMInfo[idx][tmX],ATMInfo[idx][tmY],ATMInfo[idx][tmZ],15.0);
Код:
DestroyDynamicObject(ATMInfo[idx][tmModel]); DestroyDynamic3DTextLabel(ATMInfo[idx][tmText]); ATMInfo[idx][tmX] = 0;
Assignment Warning 1: LINE 3282
Код:
if(!IsPlayerInRangeOfPoint(playerid, 5, ATMInfo[idx][tmX], ATMInfo[idx][tmY], ATMInfo[idx][tmZ])) return SendClientMessage(playerid,COLOR_GRAD1,"You are not in range of an ATM!"); if(PlayerInfo[playerid][pBankOpen] = 0) if(sscanf(params,"d", amount)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /awithdraw [Amount]"); {
Код:
if(!IsPlayerInRangeOfPoint(playerid, 5, ATMInfo[idx][tmX], ATMInfo[idx][tmY], ATMInfo[idx][tmZ])) return SendClientMessage(playerid,COLOR_GRAD1,"You are not in range of an ATM!"); { if(PlayerInfo[playerid][pBankOpen] = 1) { if(sscanf(params,"d", amount)) return SendClientMessage(playerid,COLOR_WHITE,"USAGE: /awithdraw [Amount]");