Search Results
Public functions need to be forwarded, so
pawn Код:
forward settime();public settime(){ new hour,minute,second; new string[256]; gettime(hour,minute,second); if (minute <= ...
94
Of course, my bad, sorry. Edited the post
Guess i was a bit too lazy there, lol.
88
Use this:
pawn Код:
stock str_replace(sSearch[], sReplace[], const sSubject[], &iCount = 0){ new iLengthTarget = strlen(sSearch), iLengthReplace = strlen(sReplace),...
88
I'm not actually sure. Which MySQL plugin are you using?
110
Try this:
pawn Код:
mysql_format(dbHandle, string, sizeof string, "%s WHERE `pName` = '%s'", string, getPlayerName(pid));
You forgot to add a blank space between the "%s" and the WHERE clause.
110
Do you mean the yellow marker at the entrances and exits or the red checkpoint where you can buy food, weapons, etc ?
If you mean the yellow marker, that's an object used as a pickup. Should be objec...
260
https://sampwiki.blast.hk/wiki/SetPlayerCheckpoint
260
Have you checked the streamdistance? You have to be near the locations for the checkpoint to be shown.
You could try to remove it.
197
Код:
sizeof(PizzaDeliveryLocation)
This will return the size of your define PIZZA_CHECKPOINTS and so it chooses a random number between 0 and 23. You only have 3 checkpoints added, so it will only...
197
You could also write a function like
Код:
IsAPoliceVehicle(vehicleid)
{
for(new i = 0; i < sizeof(sfpdcars); i++)
{
if(vehicleid == sfpdcars[i]) return true;
}
return false;
}
and then c...
199
(1 - (Your variable / 60)) * 100 ?
93
So you want a countdown which shows for every player?
PHP код:
new counter = 5;forward CountDown();public CountDown(){ if(counter > 0) { new str[1]; ...
159
"mysqli_select_db" asks for a database name (string) and you gave that function an integer ($connect).
The first parameter should be "$connect" and the second parameter "$database":
PHP код:
...
178
Nothing. I already added it to your query in my post. Try that line.
213
Where do you create the pickup? Show the code please
You have to do something like "RepairPickup = CreatePickup....." and then check for "RepairPickup" under OnPlayerPickUpPickup.
PHP код:
n...
50
PHP код:
if(strcmp(cmd, "/createactor", true) == 0)
{
new actorName[24],skin;
if(sscanf(cmd[13],"is[24]",skin,actorName)) return SendClientMessage(playerid,COLOR_GREY,"...
140
Well, you can't really use the key "E" on foot. It isn't a valid key. "E" can only be used when in a vehicle.
Look here for all the available keys:
https://sampwiki.blast.hk/wiki/Keys
62
What exactly is the error code?
62
He means that you should add "DESC" to your mysql query.
PHP код:
mysql_tquery(mysql ,"SELECT Username,Money FROM players WHERE ID ORDER BY Money DESC LIMIT 1;", "ShowBestCash",""...
213
Show us your command code then
74