Search Results
Quote:
Originally Posted by PepsiCola23
Why do you set the same timer twice if one is already is repeating?remove the one in the function
Tried that as well, also I've tried making them...
110
Quote:
Originally Posted by rfr
Код:
CMD:rainbow(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, -1, "[ERROR]: Y...
110
Код:
CMD:rainbow(playerid, params[])
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
{
SendClientMessage(playerid, COLOR_RED, "[ERROR]: You need to be a driver in a vehicle to use that comma...
110
Quote:
Originally Posted by RedFusion
change
pawn Код:
format(string2, sizeof(string2))format(string3, sizeof(string3))
to
pawn Код:
format(string2, sizeof(string2)format(string3...
100
Код:
Kills[killerid] ++;
new string1[128], string2[128],string3[128], pname[MAX_PLAYER_NAME], kname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
GetPlayerName(killerid, kname, ...
100
Quote:
Originally Posted by Arthur Kane
Not sure what you're asking if you could rephrase it but:
PID isn't a string. You're doing:
PHP код:
GetPlayerName(PID, name, sizeof(name)...
106
Код:
CMD:warn(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] == 0)
return SendClientMessage(playerid, COLOR_RED, "ERROR: Insufficient Permissions!");
new PID, str[128], reason[64], n...
106
Quote:
Originally Posted by thefirestate
Right, apparently no-one is going to show you how to properly do it so, first things first! When you format your string you are formatting it for e...
169
Quote:
Originally Posted by BiosMarcel
If you ask like this i doubt anyone will help, also, i hope no one will.
People like you gotta learn how to ask questions:
1. What is the problem
2...
169
Код:
CMD:admins(playerid, params[])
{
new count = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
if(!PlayerInfo[i][pAdmin]) continue;
new string[90], pla...
169
Quote:
Originally Posted by Meller
That doesn't matter if you're setting the default skin to -1. Set it to 299 and you'll get a white male with a black leather jacket.
INI_WriteInt(File,"...
133
Quote:
Originally Posted by Meller
It really depends on your gamemode and where you want it. By my guesses, place it at OnPlayerSpawn.
I've made it OnPlayerSpawn and it still when a pla...
133
Quote:
Originally Posted by Meller
When is the next time you set the players skin to something? If you're registering it at -1 and then disallowing the player to load negative skins, their...
133
Код:
CMD:saveskin(playerid, params[], help)
{
new skinid, string[256];
if(skinid > 299) return SendClientMessage(playerid,COLOR_RED,"ERROR: Available Skin: 0 - 299 !");
format(strin...
133
Quote:
Originally Posted by Swankeh
public PayDay(playerid)
{
SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]");
}
When creating a function...
124
Quote:
Originally Posted by JaydenJason
The function doesn't have a "playerid" parameter
So how can I make this? or a payday every 'x' time?
124
Код:
forward PayDay();
public PayDay()
{
SendClientMessage(playerid, COLOR_BLUE, ""COL_WHITE"[------"COL_BLUE"Pay Day!"COL_WHITE"-------]");
}
error 017: undefined symbol "playerid"
Someone can e...
124
Quote:
Originally Posted by Meller
CMD:buyhouse(playerid, params[]);
shall be
CMD:buyhouse(playerid, params[])
Oh god, thanks a lot bro!
I wasn't noticing it and never had that error be...
130
The error lines: https://imgur.com/a/RPqm2
It does should be < instead of >, Thank you.
130
Код:
CMD:buyhouse(playerid, params[]);
{
if(GetPlayerMoney(playerid) >= 1499999) return SendClientMessage(playerid, COLOR_RED, "ERROR: You don't have enough money");
GivePlayerMoney(playerid, -...
130