Search Results
Make sure you push the Compile and Run button. It is the blue arrow at the top. Shortcut F6
284
Hey guys/girls out there! I need some assistance making an NPC for my server.
The NPC must:
Have an army skin
Have a M4
Have unlimited ammo
Walk along a specified path
Stop to shoot at a player if t...
49
Oh, duh. Thank you. I was over-thinking it.
83
Hello again! I am trying to make a /setmoney command using ZCMD. Currently, I have:
Код:
CMD:setmoney(playerid, params[])
{
new target;
new money;
if(sscanf(params, "ui", target, money)) retur...
83
Wow! Thank you! I must have missed the part on strcmp in the wiki. Thank you so much! And a very well put explanation of sscanf(). Again, thank you.
70
Hey! I am trying to make a command to show vehicle IDs by class. I have:
Код:
CMD:vehid(playerid, params[])
{
new sel;
if(sscanf(params, "u", sel)) return SendClientMessage(playerid, -1, "USAGE...
70
I am running SA-MP 0.3e. Whenever I go onto a server, no matter which one it is, I always crash when I Alt+Tab. Could someone assist me with the problem?
71
I added what you gave me and I now have 4 errors on line 93.
Line 93:
Код:
strtok(const string[], &index)
Errors:
Код:
C:\Users\*****\Desktop\GTA Servers\Samp 0.3e server\gamemodes\Test...
145
Quote:
Originally Posted by Kindred
Try to add this to your code somewhere:
pawn Код:
strtok(const string[], &index){ new length = strlen(string); while ((index < len...
145
I looked on https://sampwiki.blast.hk/wiki/Strtok and followed it step by step. Below is what I came up with and under that are the errors I have.
Код:
public OnPlayerCommandText(playerid, cmdtex...
145
Thank you! This has been a great help considering how I haven't been able to get a clear answer. This has really helped me understand this section of the script.
104
Hi, I was looking through a few scripts I had on my computer and I don't understand what the following means entirely.
Код:
if(IsPlayerConnected(playerid))
{
new x_v[256];
x_v = ...
104
Hey guys and girls. I need some help with a /arrest command and a /plate command.
/arrest: I have no idea where to begin with this aside from
Код:
if (strcmp("/arrest", cmdtext, true) == 0)
I wan...
57
So by using:
Код:
if(!IsPlayerInAnyVehicle(playerid))
It is doing a command when a player is not in a vehicle?
132
What's the difference in ZCMD and strcmp?
Also... What do you use "!" for in the following?
Код:
if(!IsPlayerInAnyVehicle(playerid))
132
Hey guys/girls. I am new with scripting and have been getting a few commands to work without errors. I wanted to create a command to fix a players vehicle. This command would be used by the player to ...
132
Hey girls/guys, I need a little help. I used samp_debug and I launched the debugger and I used /save to save the locations of the vehicles I created. Could someone help me interpret the line of code.
...
72