01.04.2010, 00:39
Cool script man..
Nice work
Nice work
Originally Posted by Smokey619
ok what do you mean with the change the DB_Host things and the database i dont get what your saying
|
if(!strcmp(cmdtext, "/buyhouse", true)) { new pos = IsPlayerInRangeOfHouse(playerid); new name[MAX_PLAYER_NAME]; if(!strcmp(HouseData[pos][Owner], "Empty House", true)) return GameTextForPlayer(playerid, "~g~OWNED", 3000, 5); if(GetPlayerMoney(playerid) >= HouseData[pos][hPrice]) { GivePlayerMoney(playerid, -HouseData[pos][hPrice]); GetPlayerName(playerid, name, MAX_PLAYER_NAME); strmid(HouseData[pos][Owner], name, 0, MAX_PLAYER_NAME, 255); SaveHouse(pos); GetPlayerName(playerid, name, MAX_PLAYER_NAME); format(globalquery, sizeof(globalquery) "SELECT * FROM "DB_TABLE_NAME" WHERE Owner = '%s'", name); mysql_query(globalquery); if(mysql_num_rows() >= 2) return GameTextForPlayer(playerid, "You own too many houses!", 5000, 3); GameTextForPlayer(playerid, "~g~Welcome to your new house.~n~/~r~/housecommands", 3000, 5); } else return GameTextForPlayer(playerid, "~g~YOU CANNOT AFFORD THIS HOUSE.", 3000, 5); return 1; }
format(globalquery, sizeof(globalquery) "SELECT * FROM "DB_TABLE_NAME" WHERE Owner = '%s'", name);
mysql_query(globalquery);]
format(globalquery, sizeof(globalquery), "SELECT * FROM "DB_TABLE_NAME" WHERE Owner = '%s'", name);
mysql_query(globalquery);
Originally Posted by billiout
C:\Users\Billys\Desktop\НЭпт цЬкелпт (\filterscripts\chouse.pwn(67) : error 017: undefined symbol "IsPlayerInRangeOfPoint"
C:\Users\Billys\Desktop\НЭпт цЬкелпт (\filterscripts\chouse.pwn(123) : warning 202: number of arguments does not match definition C:\Users\Billys\Desktop\НЭпт цЬкелпт (\filterscripts\chouse.pwn(202) : error 017: undefined symbol "IsPlayerInRangeOfPoint" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. How to fix that? |
Originally Posted by billiout
no anything.
|