16.05.2013, 14:25
Hi folks
Getting errors with this can anyone help?
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(177) : error 010: invalid function or declaration
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(182) : error 010: invalid function or declaration
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(187) : error 010: invalid function or declaration
Getting errors with this can anyone help?
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(177) : error 010: invalid function or declaration
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(182) : error 010: invalid function or declaration
C:\Documents and Settings\james\My Documents\Downloads\MySQL\MySQL\gamemodes\MySQL.pw n(187) : error 010: invalid function or declaration
Код:
public OnPlayerSpawn(playerid) { new Random = random(sizeof(RandomSpawns)); SetPlayerPos(playerid, RandomSpawns[Random][0], RandomSpawns[Random][1], RandomSpawns[Random][2]); SetPlayerFacingAngle(playerid, RandomSpawns[Random][3]); return 1; } //================================================================// // MySQL part // //================================================================// line 177--> if(MoneyGiven[playerid] != -1) { GivePlayerMoney(playerid, MoneyGiven[playerid]); MoneyGiven[playerid] = -1; } if(JustLogged[playerid] == 1) { ShowPlayerDialog(playerid, DIALOG_POS, DIALOG_STYLE_MSGBOX, ""Blue"Sucessfully logged-in!", ""White"You have sucessfully logged-in to your account!\n\n"White"Would you like to load you previous possition?", "Yes", "No"); JustLogged[playerid] = 0; } return 1; }