Search Results
Quote:
Originally Posted by Jefff
In HouseInfo must be houseid not playerid and at the end strcat you need set size
pName, MAX_PLAYER_NAME);
thanks
78
Код:
enum hInfo
{
hOwner[MAX_PLAYER_NAME]
};
new HouseInfo[MAX_HOUSES][hInfo];
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
strcat(HouseInfo[playerid][hOwner], p...
78
Run time error 5: "Invalid memory access"
Код:
public OnGameModeInit()
{
for(new i=0; i < MAX_HOUSES; i++)
{
LoadHouse(i);
}
return 1;
}
stock LoadHouse(houseid)
{
new fstring[14];
format(fst...
32
Quote:
Originally Posted by JessThompson
you can't get around the samp afk system
thanks, that's what I asked for
98
Quote:
Originally Posted by JessThompson
get a friend to help you test your server
I didn't asked for other solutions on how to test my server with 2 players.
98
It's not really a script question, but it's question related to scripting.
I need to test my server with 2 players.
I can connect 2 players with sandbox, but when I turn down first samp window and ...
98
When I apply animation for player he can end it by trying to sprint or jump. How do I prevent player for stoping animation? TogglePlayerControllable is not the case, I need player to be able to move c...
47
Код:
new Gun[50][MAX_PLAYERS];
public OnPlayerSpawn(playerid)
{
SetTimerEx("GunTimer", 500, true, "i", playerid);
return 1;
}
public GunTimer(playerid)
{
for(new i=0;i<50;i++)
{
if(Gun[i][p...
106
Quote:
Originally Posted by AbyssMorgan
PHP код:
new Text[5];
Text = "Nice";
tHANKS
117
Quote:
Originally Posted by ThePhenix
You are not leaving a 'slot' for the NULL terminator.
It should be:
PHP код:
new Text[5] = "Nice";
Could also be written as:
PHP ...
117
Код:
new Text[4]={"Nice"};
How do I save text in same variable later?
if I do this
Код:
Text[4]={"Nice"};
I get
error 032: array index out of bounds
117
Код:
#include <a_samp>
#include <zcmd>
#include <mapandreas>
#define MAX_Z_FISH_THRESHOLD 4.0
#define WATER_CHECK_RADIUS 5.0
IsPlayerNearWater(playerid)
{
new Float:x, Float:y,...
83
Quote:
Originally Posted by MrDiase
You have LimitGlobalChatRadius on OnGameModeInit ? Remove it, see if it works
I don't
Quote:
Originally Posted by Vince
There's a reason...
126
ShowPlayerMarkers(0);
I set this under OnGameModeInit, but I can still see icons (car icons, checkpoint icons)
126
Where can I download samp 0.3.7 RC4? DL links https://sampforum.blast.hk/showthread.php?tid=559572 dont work here
136
Quote:
Originally Posted by Jefff
pawn Код:
// globalnew gVehicleOwner[MAX_VEHICLES + 1] = {INVALID_PLAYER_ID, ...};new vehicleid = CreateVehicle(411,0,0,0,2,-1,-1,3600);gVehicleOwner[...
284
Quote:
Originally Posted by Mister0
You can make like this
Код:
new playercar[MAX_PLAYERS];
playercar[playerid] = CreateVehicle(411,0,0,0,2,-1,-1,3600);
public OnPlayerEnterVehicle(...
284
I still don't get how to create car for player...
284
Код:
PlayerPrivateVehicle[???][name]=CreateVehicle(....
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vechileid==PlayerPrivateVehicle[???][name])
{
n...
284