SA-MP Forums

Go Back   SA-MP Forums > Search Forums

Showing results 1 to 25 of 500
Search took 0.02 seconds.
Search: Posts Made By: coool
Forum: Scripting Help 01/04/2020, 02:56 PM
Replies: 8
Views: 104
Posted By coool
Re: About pawn syntax

In case if you don't know you can use "#pragma semicolon 0" to avoid ; for every statement.
Forum: Scripting Help 23/03/2020, 05:14 AM
Replies: 2
Views: 94
Posted By coool
Re: Gta sa mission textdraw

You can take x,y of a textdraw from picture. Resize the picture to 640x448 and find the x,y with some tool like MS-Paint.
https://imgur.com/a/QfUesi7
In your case it is 30x24
Forum: Scripting Help 22/03/2020, 05:11 PM
Replies: 5
Views: 117
Posted By coool
Re: Check if player has specified word in their name

What do you want to detect/find "SAMP_" or "SAMP_(random numbers or words)" if you want to detect the former see post#2 if you want to detect the latter you have to use regex (there should be other...
Forum: Scripting Help 22/03/2020, 02:48 PM
Replies: 2
Views: 81
Posted By coool
Re: OnPlayerWeaponShot help

If it doesn't get detect on OnPlayerWeaponShot then try OnPlayerTake(Give)Damage
Forum: Scripting Help 21/03/2020, 04:02 PM
Replies: 2
Views: 54
Posted By coool
Re: help trash

Do you disable spectate mode
Forum: Client Support 21/03/2020, 03:57 PM
Replies: 4
Views: 753
Posted By coool
Forum: Maps 21/03/2020, 02:05 PM
Replies: 6
Views: 909
Posted By coool
Forum: Scripting Help 21/03/2020, 05:37 AM
Replies: 4
Views: 126
Posted By coool
Re: is there a way to make this code shorter?

Yes you can make it shorter, as we know that the code inside if Injured[playerid] == x && Dead[playerid] == 0
is same for every 'weaponid'. We just need to know 'x' (refer to the above code)...
Forum: General 18/03/2020, 04:03 PM
Replies: 8
Views: 1,184
Posted By coool
Re: From SA-MP Admin to NASA (My Story)

Very nice but the last sentence in the link is pisd.
Forum: Scripting Help 24/02/2020, 08:33 AM
Replies: 4
Views: 126
Posted By coool
Re: How can i make my player always spawn with camera behind back

You have to put it in OnPlayerSpawn not under class selection.
Forum: Scripting Help 04/01/2020, 09:39 AM
Replies: 6
Views: 239
Posted By coool
Re: Optimization

I don't have an optimization (you don't need it) but variables have 0 value by default.
Forum: Scripting Help 03/01/2020, 12:27 PM
Replies: 4
Views: 135
Posted By coool
Re: Whats the difference?

The compiler will take care of white space.
Forum: Scripting Help 02/01/2020, 12:33 PM
Replies: 6
Views: 145
Posted By coool
Re: newline GameTextForPlayer not work

Do you mean each line should be on new line? then you have to insert '~n~' on the end of every line
Edit: btw your variables' size is larger
Forum: Scripting Help 30/12/2019, 02:11 PM
Replies: 19
Views: 392
Posted By coool
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

You have misunderstood something
format(s, 36, "%s - (Fist) -%.0f", issuername, amount); //The one who got damaged
format(s, 36, "%s - (Fist) +%.0f", pname, amount); //The one who damaged it...
Forum: Scripting Help 30/12/2019, 04:09 AM
Replies: 19
Views: 392
Posted By coool
Re: after player dies from shots, it shows "Splat" instead of the weapon shot at the player

For splat: issuerid should be 'INVALID_PLAYER_ID'. Check if issuerid is invalid, if it is then don't change the textdraw
Forum: Scripting Help 28/12/2019, 01:00 PM
Replies: 15
Views: 717
Posted By coool
Re: how to detect the pos where bomb drops?

Have you made sure that colandreas is compatible with your sa-mp version?
Forum: Gamemode Scripts 17/12/2019, 02:25 PM
Replies: 53
Views: 16,218
Posted By coool
Re: SWAT VS TERRORISTS [Released]

65535 = Invalid player.
Put this above line 13765 --> if (issuerid != INVALID_PLAYER_ID) {
then ident the nested code one tab forward
lastly put this symbol at the end --> }
Forum: Scripting Help 15/12/2019, 08:42 AM
Replies: 5
Views: 135
Posted By coool
Re: Unshow message for specif player?

SendClientMessageToAllExcept(const color[], const message[], exceptid)
{
for (new i,j=GetPlayerPoolSize(); i <= j && i != exceptid; i++)// i != exceptid, 'i' will never be equal to exceptid
...
Forum: Scripting Help 09/12/2019, 03:04 PM
Replies: 15
Views: 264
Posted By coool
Re: [Help] Server Error :<

I'm sorry, I can't find the problem array. :sad: :sad: wait for some one else.
Forum: Scripting Help 09/12/2019, 02:48 PM
Replies: 15
Views: 264
Posted By coool
Re: [Help] Server Error :<

:picard:
else if(dialogid == DIALOG_STOREITEMPRICE)
{
Show what is inside this one
Forum: Scripting Help 09/12/2019, 02:40 PM
Replies: 15
Views: 264
Posted By coool
Re: [Help] Server Error :<

Post the easy dialog function that has ID 'STOREITEMPRICE'
Dialog:STOREITEMPRICE(playerid, response, listitem, inputtext[])
{
//Post what is inside this.
return 1
}
Forum: Scripting Help 09/12/2019, 02:31 PM
Replies: 15
Views: 264
Posted By coool
Re: [Help] Server Error :<

The problem is not dialogid, it is in the easy dialog function.
Forum: Scripting Help 09/12/2019, 02:08 PM
Replies: 15
Views: 264
Posted By coool
Re: [Help] Server Error :<

The error describes itself, you are trying to read index 16 from an array of size 16. Array indices start from 0, that means an array that can store 16 items actually has 15 indices..
#0 005e4c98 in...
Forum: Scripting Help 09/12/2019, 08:37 AM
Replies: 15
Views: 717
Posted By coool
Re: how to detect the pos where bomb drops?

make sure that your colandreas version is compatible with your sa-mp version
Forum: Scripting Help 02/12/2019, 08:48 AM
Replies: 15
Views: 717
Posted By coool
Re: how to detect the pos where bomb drops?

Yes, this include implements Physics formulas in-game so that other people should have an easy time :)
new bombProjectile;
UnderWhereeverYouCreateBomb(playerid)
{
new Float:x,Float:y,Float:z;...
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.