Search Results
Code:
new total = cache_insert_id();
format(string, sizeof(string), "{FFFF00}%s [%d] has successfully registered. [Total Accounts: %d]",pName(playerid), playerid, total);
563
Code:
Alter Table `playerbase`
MODIFY `spvip` mediumint(2) NOT NULL DEFAULT 0;
run this query in SQL Tab in phpmyadmin
602
if(GetPlayerTeam(p) == PlayerInfo[playerid][f_Member])
476
Field 'spvip', SET default value as 0.
Example:
Code:
`spvip` mediumint(2) NOT NULL DEFAULT 0,
602
Don't use \t for those three just leave a space.
Ex:
Code:
format(string, 128, "\\c\t{F5DA81}Tedade Bomb C4 {FF0000}:\t{F5DA81}%d\n", HasC4[playerid]);
strcat(dialog, string);
205
Code:
GetSpawnPosFromID(id){
new dsid[],count;
for(new i,j=sizeof(ds); i < j; i++)
{
if(ds[i][0]==id){
dsid[count++]=i;
}
}
return dsid[random(count...
242
I want to make random spawns using enum with ids.
Example
Code:
enum dsinfo
{
id,
Float:X,
Float:Y,
Float:Z,
};
new ds[][dsinfo] =
{
{1, x, y, z},
{1, x, y, z},
{1, x, y, z}...
242
Dude, when you connect to server, you are not logged into rcon, so it returns false. That's why it doesn't show [RCON Admin].
272
Code:
new MoneyLock[MAX_PLAYERS];
CMD:recibirpaga(playerid,params[])
{
if(PlayerInfo[playerid][jMiembro] == 3)
{
if(MoneyLock[playerid] >= gettime()) return SendClientMessage(playerid, -1, "Co...
138
Check the interior co-ordinates of int_4 are right.
321
Actually, I have an idea. Delay the ban/kick and save the player data before kick/ban.
147
Quote:
// - Optimazed OnPlayerDeath.
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[playerid][pDeaths]++;
if(GetPlayerMoney(playerid) < 500)
...
4,032
Fore more secure and faster method, I suggest you to use Calisthenics's method.
142
Quote:
Originally Posted by MrCesar
Weird, downloaded a new server and my a_samp.inc doesn't have this line
oh, can you show the full warning?
153
Code:
else if(IsPlayerAdmin(playerid))
remove else
272
You can find that in a_samp.inc. I don't know for what it is used for. You can comment it!
Code:
public const SAMP_INCLUDES_VERSION = 0x037030;
153
Code:
CMD:getjob(playerid)
{
if(PlayerInfo[playerid][pJob] == 1) return SendClientMessage(playerid, -1, "You are already in fisherman job");
return 1;
}
111
Code:
if(cache_num_rows()) return error;
142
Code:
"SELECT money FROM accounts ORDERBY money DESC LIMIT 30;"
This is the query, you can set limit like how many players you want to display. 30 would be enough.
167
Does "Loaded %d cars" is printed in console/server log?
Try this: put the mysql_tquery after the MySQL connection code.
171