Search Results
There's no problem with my rotation calculator algorithm, checked it many times, the angle is correct, the attaching is the problem.
169
Yes, he do it like me, re-attaching the object, dunno why it doesn't work in my script. pawn Код: forward CalculateGPSRotation();public CalculateGPSRotation(){    new Float:ang = -1;       ...
169
Hey, I'm working on a GPS script, it's nearly finished, but I had to stop working on it beacuse of an annoying problem: My base idea is when a player uses the /gps cmd in a vehicle, it creates an ar...
169
pawn Код: public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid) {    if (GetPlayerTeam(playerid) == GetPlayerTeam(damagedid)) {        new Float:damagedHealth;        Ge...
106
Ohh and I forgot to say that the columns need to be aligned with the first two checkpoint's line, not just with the first. :/ EDIT: Any other suggestions about placing racers would help me continue m...
74
Hey! I'm working on a race filterscript, but I don't know how to place the players. I'd place them in two columns, facing the first checkpoint, like: Код: (col 1) -> -> -> ->...
74
Quote: Originally Posted by vassilis this is what i am using for team chat: it will work surely : pawn Код: new string[256];  new playername[MAX_PLAYER_NAME];  if(text[0] == '!' &am...
124
Thanks a lot, you learnt me many things I have not known before.
3,196
I hope it will be useful for you: pawn Код: public OnPlayerText(playerid, text[]){    if (text[0] == '@') {        text[0] = ' ';        new msg[128], pName[MAX_PLAYER_NAME];        ...
124
Quote: Originally Posted by WackoX https://sampwiki.blast.hk/wiki/Dialog_Styles Read again. Quote: Originally Posted by varuncoolrule There are four types 0 - DIALOG_STYL...
206
pawn Код: mysql_connect(MySQL_HOST, MySQL_USER, MySQL_DATA, MySQL_PASS);if(mysql_ping() == 1) {    mysql_debug(1);} else {    SendRconCommand( "exit" );}
114
Quote: Originally Posted by viddo Код: C:\Users\Viddo\Desktop\LARP 4.0\LARP 4.0 D\gamemodes\larp.pwn(67619) : warning 225: unreachable code There's a return that exits your functio...
80
I think the for cycle can't reach the vehicle's id you are searching for, because return stops it after finding a vehicle that's not in your range. Use continue instead of return.
88
To remove attached object, you have to use the RemovePlayerAttachedObject() function, calling again SetPlayerAttachedObject() won't work. pawn Код: if (strcmp(cmd, "/helmet", true) == 0) {    ...
49
Idk, but try to fix it with SetPlayerCameraPos() and SetPlayerCameraLookAt().
101
pawn Код: new buffer[512]; // declare it with bigger size than 196WP_Hash(buffer, sizeof(buffer), inputtext);if (strcmp(buffer, pass, false) == 0) // compare them this way
152