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: armyoftwo
Forum: Help Archive 05/05/2011, 08:51 PM
Replies: 7
Views: 801
Posted By armyoftwo
Re: Error?

mysql_query(query, -1, -1, MySQLConnection);
mysql_store_result(MySQLConnection);
if(mysql_num_rows(MySQLConnection)>0)
{
new i=0;
while(mysql_fetch_row(keysresult, "|",...
Forum: Help Archive 05/05/2011, 02:49 PM
Replies: 7
Views: 801
Posted By armyoftwo
Re: Error?

That's an advanced query you got there.
Are you sure that you have checked if the query is succeded?
Forum: Help Archive 05/05/2011, 02:24 PM
Replies: 7
Views: 801
Posted By armyoftwo
Re: Error?

most likely you forgot

mysql_store_result();

If it doesn't fix the problem, you might want to show us the code.
Forum: Help Archive 05/05/2011, 02:14 PM
Replies: 14
Views: 1,571
Posted By armyoftwo
Re: GetPlayerKeys while frozen

It should work when player is freezed. In my script it works. I think the problem is somewhere else in the script
Try the code without freezing the player and see if it works

i do it like this
...
Forum: Help Archive 05/05/2011, 05:35 AM
Replies: 14
Views: 1,571
Posted By armyoftwo
Re: GetPlayerKeys while frozen

Try GetPlayerKeys under OnPlayerUpdate.
It works perfectly, but your code should work too.
Forum: Help Archive 01/05/2011, 09:10 PM
Replies: 5
Views: 1,236
Posted By armyoftwo
Re: [help] Canton load mysql plugin

You need to download libmysql.dll from the MySQL plugin's topic, and put it in the sa-mp's server direcory.
Forum: Bug Reports 26/04/2011, 06:01 PM
Replies: 16
Views: 3,091
Posted By armyoftwo
Re: db_free_result crashes the server

Same with MySQL plugin. Sometimes it crashes, sometimes it doesn't.

mysql_free_result()
Forum: Help Archive 25/04/2011, 11:15 AM
Replies: 2
Views: 1,386
Posted By armyoftwo
Re: Undefined symbol playerid..

You might want to put it udner OnPlayerDisconnect
or just use foreach()


public OnGameModeExit()
{
foreach(Player, playerid)
{
// code
}
Forum: Gamemode Scripts 18/04/2011, 12:22 PM
Replies: 1,414
Views: 298,636
Posted By armyoftwo
Re: [GM] Carlito's Roleplay (NOT A GF EDIT)

i made this command for dynamic car system, so you can make cars in-game

if(strcmp(cmd, "/acarspawn", true) == 0)
{
if (PlayerInfo[playerid][pAdmin] < 5)
{...
Forum: Plugin Development 11/04/2011, 05:39 PM
Replies: 124
Views: 72,809
Posted By armyoftwo
Re: Regular expression

Hi,
Can someone explain why this is needed and for what?
I've looked the wiki and didn't find anything that explains what is this ( or i can't properly understand ,because my english is not very...
Forum: Tools and Files 04/04/2011, 01:47 PM
Replies: 119
Views: 34,987
Posted By armyoftwo
Re: [DEV] SA:MP - Content Management System

Great, i'm waiting for the release :)
Forum: Everything and Nothing 03/04/2011, 02:16 PM
Replies: 22
Views: 4,178
Posted By armyoftwo
Re: [RL/RP] What are you sick of & What do you want?

I am sick of Heavy role plays.

Because it's no fun, every time you change/take out your weapon, you have to do /me, you have to ROLEPLAY every car accident and that gets boring and its not fun....
Forum: Help Archive 03/04/2011, 01:48 PM
Replies: 16
Views: 1,327
Posted By armyoftwo
Re: Dialog Help.

show the code, where the cases are right
Forum: Help Archive 03/04/2011, 01:43 PM
Replies: 16
Views: 1,327
Posted By armyoftwo
Re: Dialog Help.

cases starts from 0 not 1
case 0:
case 1:
case 2: etc..
Forum: Help Archive 03/04/2011, 01:16 PM
Replies: 15
Views: 2,654
Posted By armyoftwo
Re: Report system...

you must use format().


PlayerInfo[playerid][activereport] = 1, format(PlayerInfo[playerid][reporttext], sizeof(PlayerInfo[playerid][reporttext]), "%s", tmp2),...
Forum: Help Archive 03/04/2011, 12:38 PM
Replies: 2
Views: 1,254
Posted By armyoftwo
Forum: Help Archive 03/04/2011, 08:25 AM
Replies: 3
Views: 1,055
Posted By armyoftwo
Re: newbie chat

CMD:newbie(playerid, params[])
{
new name[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, name, sizeof(name));
if(PlayerInfo[playerid][pNMuted] == 1) return...
Forum: Help Archive 03/04/2011, 07:38 AM
Replies: 14
Views: 1,742
Posted By armyoftwo
Re: why is this messing with...

tell us what's the prob.
Forum: Help Archive 02/04/2011, 04:52 PM
Replies: 23
Views: 2,156
Posted By armyoftwo
Re: Unique Game Mode

Scripting this would take weeks and you're just giving admin? LOL
Forum: Help Archive 02/04/2011, 04:22 PM
Replies: 14
Views: 1,742
Posted By armyoftwo
Re: why is this messing with...

Ignore them or delete
new m;
new ss;
Forum: Help Archive 02/04/2011, 03:48 PM
Replies: 11
Views: 1,387
Posted By armyoftwo
Re: /newbie command help

if(!strcmp(cmdtext, "/newbie", true))
{
new string[128], sendername[MAX_PLAYER_NAME], text[64];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string),...
Forum: Scripting Help 02/04/2011, 03:14 PM
Replies: 9
Views: 4,891
Posted By armyoftwo
Re: LS Elevator Script?

You can find it in sa-mp server package.
Filterscripts-> ls_elevator
Forum: Help Archive 02/04/2011, 03:12 PM
Replies: 7
Views: 930
Posted By armyoftwo
Re: Possible??

Yes.

- Use GetObjectPos to get object pos.
- Calculate the distance
Forum: Help Archive 02/04/2011, 03:04 PM
Replies: 14
Views: 1,742
Posted By armyoftwo
Re: why is this messing with...

show us the warnings
Forum: Help Archive 02/04/2011, 06:39 AM
Replies: 15
Views: 2,654
Posted By armyoftwo
Re: Report system...

I was editing the code, i messed something up.
Showing results 1 to 25 of 500

 

All times are GMT. The time now is 11:44 AM.


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